import Vue from 'vue'
import VueRouter from 'vue-router'
import login from '../components/login-login.vue'
import list from '../components/list.vue'
import add from '../components/add.vue'

Vue.use(VueRouter)

const routes = [
  { path: '/', redirect: '/login' },
  { path: '/login', component: login },
  { path: '/list', component: list },
  { path: '/add', component: add }
]

const router = new VueRouter({
  routes
})

export default router
